<?php

defined('_JEXEC') or die('Restricted access');  

$context = JRequest::getCmd('option');
$view = JRequest::getCmd('view');

$wysiwyg = & JFactory::getEditor();
$des = $wysiwyg->display('des', $this->item->des, '100%', '250', '40', '5', array('pagebreak', 'readmore','image','article','editor'));
$requirements = $wysiwyg->display('requirements', $this->item->requirements, '100%', '250', '40', '5', array('pagebreak', 'readmore','image','article','editor'));

?>
 
<div class="width-60 fltlft">
	<fieldset class="adminform">
		<legend>Info</legend>
			 <form enctype="multipart/form-data" action="<?php echo JRoute::_("index.php?option=".$context."&view=".$view)?>" method="post" name="adminForm" id="adminForm">
			<table>
				<tr>
					<td>
						<label aria-invalid="true">Title</label>				
					</td>
					<td>
						<input type="text" name="title" id="title" 
						value="<?php echo $this->item->title; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Itune ID</label>	
					</td>
					<td>
						<input type="text" name="itune_id" id="itune_id" 
						value="<?php echo $this->item->itune_id; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Android ID</label>	
					</td>
					<td>
						<input type="text" name="android_id" id="android_id" 
						value="<?php echo $this->item->android_id; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Category</label>	
					</td>
					<td>
						<input type="text" name="category" id="category" 
						value="<?php echo $this->item->category; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Updated</label>	
					</td>
					<td>
						<input type="text" name="updated" id="updated" 
						value="<?php echo $this->item->updated; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Version</label>	
					</td>
					<td>
						<input type="text" name="version" id="version" 
						value="<?php echo $this->item->version; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Size</label>	
					</td>
					<td>
						<input type="text" name="size" id="size" 
						value="<?php echo $this->item->size; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Language</label>	
					</td>
					<td>
						<input type="text" name="language" id="language" 
						value="<?php echo $this->item->language; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Seller</label>	
					</td>
					<td>
						<input type="text" name="seller" id="seller" 
						value="<?php echo $this->item->seller; ?>" class="inputbox" size="50" 
						aria-required="true" aria-invalid="true">
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Requirements</label>				
					</td>
					<td>					
						<?php echo $requirements; ?>
					</td>
				</tr>
				<tr>
					<td>
						<label aria-invalid="true">Description</label>	
					</td>
					<td>					
						<?php echo $des; ?>			
					</td>
				</tr>
			</table>			
			<input type="hidden" name="controller" value="<?php echo $view; ?>" />
			<input type="hidden" name="option" value="<?php echo $context; ?>" />
			<input type="hidden" name="id" value="<?php echo (int)$this->item->id; ?>">
			<input type="hidden" name="task" value="" />

			<?php echo JHTML::_( 'form.token' ); ?>
		</form>
	</fieldset>
</div>
	
<div class="width-40 fltrt">
	<fieldset class="panelform">
		<legend>Gallery</legend>
			bg
			p1
			p2
			p3
			p4
			p5
	</fieldset>
</div>

<div class="width-40 fltrt">
	<fieldset class="panelform">
		<legend>Meta</legend>
			<textarea cols="55" rows="5"><?php echo $this->item->meta_des?></textarea>
	</fieldset>
</div>
